const mongoose = require('../db');
const Schema = mongoose.Schema;

const schema = new Schema({
  categoryid: { type: String },
  name: {type: String},
  img: { type: String },
  kind: {type: Array}
})

// 生成一个集合 集合名称为 categorys
module.exports = mongoose.model('Category', schema);